/**
 * Copyright © 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.share.entity;

import com.jeeplus.modules.member.entity.Member;
import javax.validation.constraints.NotNull;
import java.util.Date;

import com.jeeplus.core.persistence.DataEntity;
import com.jeeplus.common.utils.excel.annotation.ExcelField;
import lombok.Data;

/**
 * 分享记录Entity
 * @author zhych
 * @version 2021-11-16
 */
@Data
public class Share extends DataEntity<Share> {
	
	private static final long serialVersionUID = 1L;
    @NotNull(message="分享者不能为空")
	@ExcelField(title="分享者", fieldType=Member.class, value="share.nickname", align=2, sort=1)
	private Member share;		// 分享者
    @NotNull(message="用户不能为空")
	@ExcelField(title="用户", fieldType=Member.class, value="u.nickname", align=2, sort=2)
	private Member u;		// 用户
	private Date beginCreateDate;		// 开始 创建时间
	private Date endCreateDate;		// 结束 创建时间
	
	public Share() {
		super();
	}
	
	public Share(String id){
		super(id);
	}
}